import request from '@/utils/request'

// 查询回收商品列表
export function listRecycleCommodity(query) {
  return request({
    url: '/recycle/recycleCommodity/list',
    method: 'get',
    params: query
  })
}

// 查询回收商品详细
export function getRecycleCommodity(id) {
  return request({
    url: '/recycle/recycleCommodity/' + id,
    method: 'get'
  })
}

// 新增回收商品
export function addRecycleCommodity(data) {
  return request({
    url: '/recycle/recycleCommodity',
    method: 'post',
    data: data
  })
}

// 修改回收商品
export function updateRecycleCommodity(data) {
  return request({
    url: '/recycle/recycleCommodity',
    method: 'put',
    data: data
  })
}

// 删除回收商品
export function delRecycleCommodity(id) {
  return request({
    url: '/recycle/recycleCommodity/' + id,
    method: 'delete'
  })
}
